home *** CD-ROM | disk | FTP | other *** search
- Path: kbad.eglin.af.mil!rpi!not-for-mail
- From: floydb1@lib104.its.rpi.edu (Barry B Floyd)
- Newsgroups: comp.lang.c++
- Subject: Re: Creating a pointer to a function "void (*ptrFunction)()" inside a class
- Date: 9 Jan 1996 15:18:24 -0500
- Organization: Rensselaer Polytechnic Institute, Troy, NY.
- Message-ID: <4cuiig$8hi@lib104.its.rpi.edu>
- References: <30ECA10F.3D99@ifu.net> <NITIN.96Jan5125830@more.eng.sun.com> <4crquj$7t1@lib108.its.rpi.edu> <NITIN.96Jan9103242@more.eng.sun.com>
- NNTP-Posting-Host: lib104.its.rpi.edu
-
-
- In article <NITIN.96Jan9103242@more.eng.sun.com>, nitin@more.eng.sun.com (Nitin More [CONTRACTOR]) writes:
- |> > ps
- |> >
- |> > note: "Function ( int, int )" remains virtual in DerivedClass,
- |> > even though the keyword "virtual" is not included in the declaration.
- |> > Thus, I believe "class DerivedDerivedClass : DerivedClass" must provide
- |> > a "Function ( int, int )" as well.
- |>
- |>
- |> I believe the last paragraph is wrong. Somebody please correct me if I am
- |> wrong.
- |>
- |> (1) The "Function ( int, int )" *does not* remain virtual in DerivedClass
- |> unless the keyword "virtual" is included in the declaration.
- |>
- |> (2) The "class DerivedDerivedClass : DerivedClass" *does not* have to provide
- |> a "Function ( int, int )" as well as long as one of its derived classes
- |> has provided definition for the pure virtual function.
- |>
- |> -Nitin
- |>
- |> --
- |> ----------------------------------------------------------------------
- |> Nitin More
- |> SunSoft, Bldg 16 Off: (415) 786 7109
- |> Menlo Park, CA Fax: (415) 786 7957 e-mail: nitin@more.eng.sun.com
- |> ----------------------------------------------------------------------
-
-
- I may stand corrected, better minds please weigh in.
-
- barry
- --
- +--------------------------------------------------------------------+
- | Barry B. Floyd \\\ floydb1@rpi.edu |
- | RPI Alum. '84 '87 '88 \\\ |
- +--------------------------------------------------------------------+
-